﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VideoNetApplication.Common.Dao;

namespace VideoNetApplication.Common.Service
{
    public class NewsService
    {
        NewsDao dao = new NewsDao();
        /// <summary>
        /// 获取一条新闻
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public V_News GetNewsById(int id)
        {
            return dao.GetNewsById(id);
        }
        /// <summary>
        /// 获取新闻列表
        /// </summary>
        /// <param name="schoolId"></param>
        /// <param name="starIndex"></param>
        /// <param name="maxRow"></param>
        /// <param name="recordCount"></param>
        /// <returns></returns>
        public List<V_News> GetNewsList(int schoolId, int starIndex, int maxRow, out int recordCount)
        {
            return dao.GetNewsList(schoolId, starIndex, maxRow, out recordCount);
        }
    }
}
